<!-- 确认弹窗组件 -->
<template>
  <div class="confirm-toast" @click="$emit('hide')">
    <div class="modal" @click.stop>
      <div class="title">确认要离开收银台？</div>
      <div class="remind">请尽快完成支付，否则将被取消</div>
      <div class="btn">
        <div class="cancel btn-item" @click="$emit('cancel')">取消订单</div>
        <div class="pay btn-item" @click="$emit('confirm')">确认支付</div>
      </div>
    </div>
  </div>
</template>

<script>
// composition
export default {
  name:'confirmToast'
}
</script>

<style scoped lang="scss">
@import '@/styles/mixin.scss';
@import '@/styles/theme.scss';
.confirm-toast{
  @include toast;
  .modal{
    .title{
      margin: 28px 0 10px;
      font-size: 18px;
      color: $theme-font-color;
      font-weight: bold;
    }
    .remind{
      margin-bottom: 24px;
      font-size: 14px;
      color: #666666;
    }
    .btn{
      display: flex;
      &-item{
        width: 80px;
        height: 32px;
        border-radius: 16px;
        line-height: 32px;
        text-align: center;
        font-size: 14px;
      }
      .cancel{
        color: #0091FF;
        border: 1px solid #0091FF;
        margin-right: 24px;
      }
      .pay{
        background-color: #0091FF;
        color: $white;
      }
    }
  }
}
</style>
